<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TWO:  Fichier source de two.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&nbsp;de&nbsp;fichier</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>two.h</h1>  </div>
</div>
<div class="contents">
<a href="two_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __TWO_H__</span>
<a name="l00002"></a><a class="code" href="two_8h.html#a50d75fec00af16b829524e601a812c40">00002</a> <span class="preprocessor"></span><span class="preprocessor">#define TWO_H__</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span><span class="comment">/*! \file two.h</span>
<a name="l00004"></a>00004 <span class="comment"> * \author JM Moreau</span>
<a name="l00005"></a>00005 <span class="comment"> * \date 2004</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;math.h&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;unistd.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;GL/glut.h&gt;</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">/*! variable externe permettant de lire les parametres sur le ligne de commande.*/</span>
<a name="l00015"></a>00015 <span class="keyword">extern</span> <span class="keywordtype">char</span> *<a class="code" href="two_8h.html#adb50a0eab9fed92fc3bfc7dfa4f2c410">optarg</a>;
<a name="l00016"></a>00016 <span class="comment"></span>
<a name="l00017"></a>00017 <span class="comment">/*! bascule pour autoriser ou interdire (0) les messages d&#39;erreurs envoyes par getopt. */</span>
<a name="l00018"></a>00018 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="two_8h.html#ae30f05ee1e2e5652f174a35c7875d25e">opterr</a>;
<a name="l00019"></a>00019 <span class="comment"></span>
<a name="l00020"></a>00020 <span class="comment">/*! Dimension de l&#39;espace */</span>
<a name="l00021"></a><a class="code" href="two_8h.html#ac25189db92959bff3c6c2adf4c34b50a">00021</a> <span class="preprocessor">#define DIM 2</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00023"></a>00023 <span class="comment">/*! Structure pour representer un point. */</span>
<a name="l00024"></a><a class="code" href="structvertex.html">00024</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00025"></a>00025 {
<a name="l00026"></a><a class="code" href="structvertex.html#ade21df20d66ead38db898c27e7c6cfcf">00026</a>   <span class="keywordtype">double</span> coords[DIM];
<a name="l00027"></a>00027 } <a class="code" href="structvertex.html">vertex</a>;
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="comment">/*Ajouter un point*/</span>
<a name="l00030"></a>00030 <span class="keywordtype">void</span> <a class="code" href="two_8h.html#a2c5d5da4c9a5e13195fe1c36efd3126e">CreerPoint</a>(<span class="keywordtype">double</span> x,<span class="keywordtype">double</span> y,<span class="keywordtype">int</span> n);
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="keywordtype">void</span> <a class="code" href="two_8h.html#a6d2cca568e206a305c0e3434ff0214a1">HeapDown</a>();
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="two_8h.html#a8e22e883b77ac42270543cbb107c8571">echange</a>(<a class="code" href="structvertex.html">vertex</a> a, <a class="code" href="structvertex.html">vertex</a> b);
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <a class="code" href="structvertex.html">vertex</a> <a class="code" href="two_8h.html#af58d493e4134da25957ac368116322fc">plus_grand_vertex</a>(<a class="code" href="structvertex.html">vertex</a> a, <a class="code" href="structvertex.html">vertex</a> b);
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="keywordtype">int</span> <a class="code" href="two_8h.html#a8bc490d65ebb275630f00da3214bfc8b">sont_alignes</a>(<a class="code" href="structvertex.html">vertex</a> a, <a class="code" href="structvertex.html">vertex</a> b, <a class="code" href="structvertex.html">vertex</a> c);
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="two_8h.html#a49fef0433ac102092ec18915019952bf">tri_tab</a>(<span class="keywordtype">int</span> n);
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="two_8h.html#a369d70ada2a2a96ddfe8bdf34cb608bf">insert_position_n</a>(<span class="keywordtype">int</span> n);
<a name="l00044"></a>00044 <span class="comment"></span>
<a name="l00045"></a>00045 <span class="comment">/*! Tailles diverses du systemes de fenetrage .*/</span>
<a name="l00046"></a><a class="code" href="two_8h.html#aa79f82e9dc819fdd2677d921b14c622b">00046</a> <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="two_8h.html#aa79f82e9dc819fdd2677d921b14c622b">minX</a> = 0,
<a name="l00047"></a><a class="code" href="two_8h.html#a2f5777053eb0ca15b421810278efe6d4">00047</a>              <a class="code" href="two_8h.html#a2f5777053eb0ca15b421810278efe6d4">maxX</a> = 500,
<a name="l00048"></a><a class="code" href="two_8h.html#a6d590764b227dabe57cb1fa87f2ec400">00048</a>                  <a class="code" href="two_8h.html#a6d590764b227dabe57cb1fa87f2ec400">minY</a> = 0,
<a name="l00049"></a><a class="code" href="two_8h.html#a9aa3ac744971d16a23295bc538daf113">00049</a>                  <a class="code" href="two_8h.html#a9aa3ac744971d16a23295bc538daf113">maxY</a> = 500,
<a name="l00050"></a><a class="code" href="two_8h.html#a331d58f4de16f0967e4d15c592628b1c">00050</a>                  <a class="code" href="two_8h.html#a331d58f4de16f0967e4d15c592628b1c">margin</a> = 10;
<a name="l00051"></a>00051 <span class="comment"></span>
<a name="l00052"></a>00052 <span class="comment">/*! Nombre de &quot;sites&quot; dans le programme, modifiable par la ligne</span>
<a name="l00053"></a>00053 <span class="comment"> * de commande de la fonction main().</span>
<a name="l00054"></a>00054 <span class="comment"> */</span>
<a name="l00055"></a><a class="code" href="two_8h.html#af48cf291e4de4f73fa530f98cc16cd3c">00055</a> <span class="keywordtype">int</span> <a class="code" href="two_8h.html#af48cf291e4de4f73fa530f98cc16cd3c">nbPoints</a> = 50;
<a name="l00056"></a>00056 <span class="comment"></span>
<a name="l00057"></a>00057 <span class="comment">/*! Tableau gobal des sommets */</span>
<a name="l00058"></a><a class="code" href="two_8h.html#a92b32f1653ce843fea69a3076a8859e0">00058</a> <a class="code" href="structvertex.html">vertex</a> *<a class="code" href="two_8h.html#a92b32f1653ce843fea69a3076a8859e0">T</a> = NULL;
<a name="l00059"></a>00059 <span class="preprocessor">#endif</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span>
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Généré le Thu Oct 20 2011 15:33:53 pour TWO par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
